<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <title>APP</title>
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../font/iconfont.css" />

</head>


<body>
  <div class="header home active">
     <div class="top-menu"></div>
    <div class="add_btn btn" tapmode onclick="fnMore()"></div>
  </div>
    <div>344444444444444444444444</div>
    <div>344444444444444444444444</div>
    <div>344444444444444444444444</div>
    <div>344444444444444444444444</div>
    <div>344444444444444444444444</div>
    <div>344444444444444444444444</div>
    <div>344444444444444444444444</div>
    <div id="list"></div>

</body>

<script id="myhome" type="text/x-dot-template">

    <ul class="aui-list aui-list-in" style="margin:0.6rem 0;">
        <li class="aui-list-item" data-url="my_name" onclick="fnOpenWinCommon(this,{phone:{{? it.head_img}}'{{=it.head_img}}'{{??}}''{{?}}})">


            <div class="aui-list-item-inner aui-list-item-arrow">
                <div class="aui-list-item-title">我的昵称</div>
                <div class="aui-list-item-right" id="name">
                    {{=it.nickname}}
                </div>
            </div>
        </li>
        <li class="aui-list-item" data-url="my_phone" onclick="fnOpenWinCommon(this,{phone:{{=it.phone}}})">

            <div class="aui-list-item-inner aui-list-item-arrow">
                <div class="aui-list-item-title"><i class="aui-iconfont aui-icon-mobile" style="color:red"></i>我的手机</div>
                <div class="aui-list-item-right" id="phone">
                    {{=it.phone}}
                </div>
            </div>

        </li>
        <li class="aui-list-item" data-url="my_qq" onclick="fnOpenWinCommon(this)">
            <!-- <div class="aui-list-item-label-icon">
                        <i class="aui-iconfont aui-icon-camera"></i>
                    </div> -->
            <div class="aui-list-item-inner aui-list-item-arrow">
                <div class="aui-list-item-title"><i class="aui-iconfont aui-icon-qq"></i>我的QQ</div>
                <div class="aui-list-item-right" id="qq">
                    {{=it.qq}}
                </div>
            </div>
        </li>

        <li class="aui-list-item" style="display:none">
            <!-- <div class="aui-list-item-label-icon">
                        <i class="aui-iconfont aui-icon-camera"></i>
                    </div> -->
            <div class="aui-list-item-inner aui-list-item-arrow" data-url="my_address" onclick="fnOpenWinCommon(this)">
                <div class="aui-list-item-title">收货地址</div>
                <div class="aui-list-item-right">

                </div>
            </div>
        </li>

    </ul>
    <ul class="aui-list aui-list-in" style="margin:0.5rem 0;">
        <li class="aui-list-item" {{? it.name_status==null}} onclick="fnOpenWin(this)" {{?? it.name_status=="0" }} onclick="alert('审核中')" {{?? it.name_status=="1" }} onclick="alert('已认证')" {{?? it.name_status=="-1" }} onclick="fnOpenWin2(this)" {{?}} data-name="real_name">
            <div class="aui-list-item-inner aui-list-item-arrow">
                <div class="aui-list-item-title" id="real-name" name_status="{{=it.name_status}}"><i class="aui-iconfont aui-icon-cert"></i>实名认证</div>

                <div class="aui-list-item-right">
                    {{? it.name_status==null}} 点击认证 {{?? it.name_status=="0"}} 审核中 {{?? it.name_status=="1"}} 认证成功 {{?? it.name_status=="-1"}} 认证失败 {{?}}
                </div>


            </div>
        </li>
        <li class="aui-list-item" onclick="fnOpenWin1(this)" data-name="taobao_bind">
            <div class="aui-list-item-inner aui-list-item-arrow">
                <div class="aui-list-item-title">淘号绑定</div>
                <div class="aui-list-item-right">
                    点击绑定
                </div>
            </div>
        </li>
        <li class="aui-list-item" onclick="fnOpenWin1(this)" data-name="jingdong_bind">
            <div class="aui-list-item-inner aui-list-item-arrow">
                <div class="aui-list-item-title">京号绑定</div>
                <div class="aui-list-item-right">
                    点击绑定
                </div>
            </div>
        </li>
        <input type="hidden" id="nameReal" value="{{=it.name}}" />

        <li class="aui-list-item" onclick="fnOpenWin(this)" data-name="alipay_bind">
            <div class="aui-list-item-inner aui-list-item-arrow">
                <div class="aui-list-item-title">支付宝绑定</div>
                <div class="aui-list-item-right">
                    点击绑定
                </div>
            </div>
        </li>
    </ul>

    <ul class="aui-list aui-list-in" style="margin:0.6rem 0;">


        <li class="aui-list-item" onclick="fnOpenWinCommon(this)" data-url="my_password">
            <!-- <div class="aui-list-item-label-icon">
                                    <i class="aui-iconfont aui-icon-camera"></i>
                                </div> -->
            <div class="aui-list-item-inner aui-list-item-arrow">
                <div class="aui-list-item-title">修改密码</div>
                <div class="aui-list-item-right">
                    点击修改
                </div>
            </div>
        </li>

    </ul>
    <ul class="aui-list aui-list-in" style="margin:0.6rem 0;">


        <li class="aui-list-item" onclick="fnLoginOutCommon()">
            <!-- <div class="aui-list-item-label-icon">
                              <i class="aui-iconfont aui-icon-camera"></i>
                          </div> -->
            <div class="aui-list-item-inner aui-list-item-arrow">
                <div class="aui-list-item-title">退出登录</div>
                <div class="aui-list-item-right">
                    点击退出
                </div>
            </div>
        </li>

    </ul>
    <ul class="aui-list aui-list-in" style="margin:0.6rem 0;">


        <li class="aui-list-item" onclick="fnOpenWinCommon(this)" data-url="ztf">
            <!-- <div class="aui-list-item-label-icon">
                                    <i class="aui-iconfont aui-icon-camera"></i>
                                </div> -->
            <div class="aui-list-item-inner aui-list-item-arrow">
                <div class="aui-list-item-title">退出登录</div>
                <div class="aui-list-item-right">
                    点击退出
                </div>
            </div>
        </li>

    </ul>


</script>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="./conf/config.js"></script>
<script type="text/javascript" src="./js/common.js"></script>
<script type="text/javascript" src="../script/doT.min.js"></script>
<script type="text/javascript">
    apiready = function() {
      test();
    var str = window.location.href;
    str1=str.substring(str.lastIndexOf("/") + 1);
    //alert(str1);//获取未见的后最名
    };

    function dianwo1() {
        api.setRefreshHeaderInfo({
            loadingImg: 'widget://image/refresh.png',
            bgColor: '#ccc',
            textColor: '#fff',
            textDown: '下拉刷新...',
            textUp: '松开刷新...'
        }, function(ret, err) {
            //在这里从服务器加载数据，加载完成后调用api.refreshHeaderLoadDone()方法恢复组件到默认状态
            //dianwo();
        });
    }

    function dianwo() {
        //alert(111111);return false;
        var audioStreamer = api.require('audioStreamer');
        audioStreamer.openPlayer({
            path: 'http://7xisq1.com1.z0.glb.clouddn.com/apicloud/0d0b81b8bd5ab81bda9ca54267eb9b98.mp3',
        }, function(ret) {
            if (ret.status) {
                api.alert({
                    msg: JSON.stringify(ret)
                });
            }
        });
    }


    function fnChange(index) {
        for (var i = 0; i < menus.length; i++) {
            if (index == i) {
                $api.addCls(menus[i], 'active');
                $api.addCls(headers[i], 'active');
                switch (i) {
                    case 3:
                        fnOpenFrame(i, true);
                        break;
                    case 2:
                        fnOpenFrameGroup(i, true);
                        break;
                    default:
                        fnOpenFrameGroup(i, true);
                        fnNavigationBar(i, true);
                        break;
                }
            } else {
                $api.removeCls(menus[i], 'active');
                $api.removeCls(headers[i], 'active');
                switch (i) {
                    case 3:
                        fnOpenFrame(i, false);
                        break;
                    case 2:
                        fnOpenFrameGroup(i, false);
                        break;
                    default:
                        fnOpenFrameGroup(i, false);
                        fnNavigationBar(i, false);
                        break;
                }
            }
        }
    };
    function test(){
    var NVNavigationBar = api.require('NVNavigationBar');
    NVNavigationBar.open({
        rect: {
             x: 0,
             y: 600,
             w: api.frameWidth,
             h: 42
        },
       styles: {
             orientation: 'horizontal',
             bg: '#6b6b6b',
             bgAlpha: 1,
             font: {
             size: 14,
             sizeSelected: 18,
             color: '#FFFFFF',
             colorSelected: '#ff0000',
             alpha: 1
             },
             itemSize: {
                 w: 90,
                 h: 44
             }
       },
        items: [{
           title: '标题一',
           bg: '#FFE7BA',
           bgSelected: '#ff00000'
           },{
           title: '标题二',
           bg: '#FFE1FF',
           bgSelected: '#FFA500'
           },{
           title: '标题三',
           bg: '#FFAEB9',
           bgSelected: '#FFA500'
           },{
           title: '标题四',
           bg: '#CDCD00',
           bgSelected: '#FFA500'
           },{
           title: '标题五',
           bg: '#BBFFFF',
           bgSelected: '#FFA500'
           },{
           title: '标题六',
           bg: '#436EEE',
           bgSelected: '#FFA500'
           }],
           selectedIndex: 1,
           fixedOn: api.frameName,
           id: 'first'
    }, function(ret, err) {
        api.alert({msg:JSON.stringify(ret)});
    });
    }
</script>

</html>
